package gwc.domain

class User {
	String name
	String password

	static def users = [:]

	static def get(userName) {
		User.users[userName]
	}

	def save() {
		User.users[this.name] = this
	}

	boolean equals(other) {
		this.name == other.name
	}

	int hashCode() {
		this.name.hashCode()
	}
}